old_l = []
while True:
    input_num = input("number or 'quit':")
    if input_num == 'quit':
        break
    else:
        input_num = int(input_num)
        old_l.append(input_num)

new_l = []
for i in range(0,len(old_l)):
    i = min(old_l)
    old_l.remove(i)
    new_l.append(i)